import {Dimensions, StatusBar, Platform, PixelRatio} from 'react-native';
//手机屏幕的宽度
export const width = Dimensions.get('window').width;
//手机屏幕的高度
export const height = Dimensions.get('window').height;
var lastNavTime = "";

export const jumpPage=(navigation,page,params)=>{
  if(lastNavTime+1000 >= Date.now()){
    return;
  }
  lastNavTime = Date.now();
  if(navigation){
    navigation.push(page,params);
  }
}